<?php
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:xjh
 * Date:2016-4-30
*/

	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>轩辕商城-后台</title>
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>index.css" />
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>common.css" />
<script type="text/javascript" src="<?php echo backweb_JS_URL;?>jquery.js"></script>
<script>

function centerWindow(url,name,width,height){
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2 - 50;
	window.open(url, name, 'width='+width+',height='+height+',top='+top+',left='+left);
}
</script>
</head>
<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">广告管理</a></li>
			<li><a href="#">修改广告</a></li>
		</ul>
	</div>
	<form method="post" action="./index.php?r=backweb/adver/adverupd&adver_id=<?php echo $adver_info['adver_id'];?>"  name="fm">
		<div id="table">
     	   <div>
             <table class="list_table mt10">
             <tr>
				 <td class="td_center wh100">广告名：</td>
				 <td>
					 <input type="text" name="adver_name" value="<?php echo $adver_info['adver_name']?>" class="input-text" style="width:400px;"  /> 
				</td>		
			  </tr>	
			  <tr>
				 <td class="td_center wh100">广告地址：</td>
				 <td>
					<input type="text" name="adver_url" value="<?php echo $adver_info['adver_url']?>"  class="input-text" style="width:400px;"   /> 
				 </td>		
			   </tr>
			   <tr>
				 <td class="td_center wh100">缩略图地址：</td>
				 <td>
					<input type="text" name="adver_thumbnail_url" value="<?php echo $adver_info['adver_thumbnail_url'];?>"  class="input-text" style="width:400px;"  readonly="readonly" /> 
					<input type="button" value="上传缩略图"  onclick="centerWindow('./index.php?r=backweb/adver/thumbnail','upfile','400','100')" class="ml20 h25 w80 bgcolorace7ff cu" style="border:1px solid #ccc;" />(规格必须为1800*570px)
					<img name="pic" style="display:none;" /> 
					</td>		
			   </tr>
			   <tr>
				 <td class="td_center wh100">广告条位置：</td>
				 <td>
				 	<input type="hidden" value="<?php echo $adver_info['adver_position'];?>" name="adver_position" />
				 	<select name="adver_position" value="<?php echo $adver_info['adver_position'];?>" disabled="true">
				 		<option value="1" <?php if($adver_info['adver_position'] == 1) echo 'selected="true"';?>>新品上市</option>
				 		<option value="2" <?php if($adver_info['adver_position'] == 2) echo 'selected="true"';?>>横条广告</option>
				 		<option value="3" <?php if($adver_info['adver_position'] == 3) echo 'selected="true"';?>>品牌汇总</option>
				 	</select>(*该项不可轻易修改,请重新生成)
				</td>		
			   </tr>
			   <tr>
				 <td class="td_center wh100">是否推荐：</td>
				 <td>
				 	<input type="radio" name="adver_rec"  value="1" <?php if($adver_info['adver_rec'] == 1)  echo 'checked="checked"';?> />是
				 	<input type="radio" name="adver_rec" value="0" <?php if($adver_info['adver_rec'] == 0)  echo 'checked="checked"';?>  />否
				</td>		
			   </tr>	
			   <tr>
				 <td class="td_center wh100">广告图顺序：</td>
				 <td>
				     <input type="text" name="adver_sort" value="<?php echo $adver_info['adver_sort'];?>"  class="input-text wh100"/>
				 </td>		
			  </tr>			
			  <tr>
					<td class="td_center wh100">是否可用：</td>
					<td> <input type="radio" value="1" name="active" <?php if($adver_info['active'] == 1)  echo 'checked="checked"';?>  />是
					     <input type="radio" value="0" name="active" <?php if($adver_info['active'] == 0)  echo 'checked="checked"';?>  />否
					</td>
				</tr>
			  <tr>
				  <td class="td_center">
				    <input type="submit" name="btsave" id="btsave" value="修改" class="btn btn82 btn_save ml25" />				
				 </td>
				 <td>
				   <input type="reset" value="重置" class="btn btn82 btn_res ml10" />
				</td>
			 </tr>
			 </table>
          </div>
        </div>       
    </form>    
</body>
</html>